$(function () {
    		var current=0;
    		var count=$(".pics-list li").length-1;
    		var width=$(".pics-list li").width();    		
    		
    		function next() {
    			if (current>=count) {
	    			current=0;
	    		} else{
	    			current++;
	    		}	 
	    		$(".points-list li").eq(current).addClass("active").siblings().removeClass("active")
	    		$(".pics-list").css("left",-1*width*current+"px")
    		}
    			    	
	    	/*轮播图*/
	    	function prev() {
	    		if (current<=0) {
	    			current=count;
	    		} else{
	    			current--;
	    		}	    	
	    		$(".points-list li").eq(current).addClass("active").siblings().removeClass("active")
	    		$(".pics-list").css("left",-1*width*current+"px")	    		
	    	}
	    	setInterval(function () {
    			next();
    		},3000)
	    	$(".banner-box .next").click(function () {
	    		next();
	    	})
	    	$(".banner-box .prev").click(function () {
	    		prev();
	    	})
    	})